home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Programare
/
sharp
/
wwwSharp_setup.exe
/
{app}
/
Examples
/
Form
/
index.hta
< prev
next >
Wrap
Text File
|
2003-12-03
|
1KB
|
35 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>www-Sharp.ClrHost Form sample</TITLE>
<META name="GENERATOR" content="MSHTML 6.00.2800.1264">
<META http-equiv="MSThemeCompatible" content="Yes">
<OBJECT id="AppDomain" classid="clsid:89F1D07D-3AC6-4ACB-B8A4-8EDDDCB0142E"></OBJECT>
<OBJECT id="myForm" classid="clsid:4CC2B254-F4C7-4F52-881E-C2E10B14E003">
<PARAM name="AssemblyName" value="SimpleForm">
<PARAM name="TypeName" value="wwwSharp.ClrHost.Examples.SimpleForm">
<PARAM name="BackColor" value="ivory">
<PARAM name="Size" value="250; 150">
</OBJECT>
<SCRIPT language="JScript">
function OnBtnFormFromScriptClick()
{
var form;
form = AppDomain.CreateInstance("SimpleForm", "wwwSharp.ClrHost.Examples.SimpleForm");
form.ShowDialog();
}
function OnBtnFormObjectClick()
{
myForm.ShowDialog();
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON id="btnFormScript" onclick="OnBtnFormFromScriptClick()">Create form from
script.</BUTTON>
<BUTTON id="btnFormObject" onclick="OnBtnFormObjectClick()">Show form using OBJECT.
</BUTTON>
</BODY>
</HTML>